package com.link2room.soundwave.controller.api;

import com.link2room.common.dto.result.base.BaseResultDto;
import com.link2room.common.dto.param.base.BaseL2rParamDto;
import com.link2room.soundwave.util.HandlerUtil;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by LN on 2017/7/26.10:37
 */
@Api(tags = "PMS会员信息")
@RestController
@RequestMapping("/api/PMSMemberInfo")
public class PMSMemberInfoController {
    @RequestMapping(method = RequestMethod.GET)
    public BaseResultDto getPmsInfo() throws Exception {
        BaseL2rParamDto paramDto = new BaseL2rParamDto();
        BaseResultDto resDto = new BaseResultDto();
        resDto.setResultCode(0);
        resDto.setResultInfo(HandlerUtil.pmsMemberHandler().getCurrentUserPMSMemberInfoHandler(paramDto));
        return resDto;
    }


}
